package edu.sctu.zhangwang.month201505.day20150518.duiXiang;

/**
 * Created by user10 on 2015/5/18.
 */
public class GuessOne {
    public int v;
    public int x;

    public GuessOne(int v,int x){
        this.v = v;
        this.x = x;
    }
    public void judge(){
        if (x>v){
            System.out.println("过大");
        }else if (x<v){
            System.out.println("过小");
        }else if (x==v){
            System.out.println("猜测成功");
        }
    }
}
